package com.ruoyi.ai.enums;

import lombok.Getter;

import java.util.Arrays;

/**
 * 厂商枚举
 */
public enum MfgEnum {
    QWEN("qwen", "阿里通义千问"),
    QFAN("qfan", "百度千帆"),

    XF_SPARK("xfspark","讯飞星火"),

    OLLAMA("ollama","ollama"),

    DIFY("dify","dify")
    ;

    @Getter
    private final String type;
    @Getter
    private final String desc;

    MfgEnum(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public static MfgEnum getByType(String type) {
        return Arrays.stream(values()).filter(c -> c.getType().equals(type)).findFirst().orElse(null);
    }
}
